const  abilityNodes = [
    {id:1, label:'技术知识与推理', group:'ability', x: 20, y: 150},
    {id:2, label:'开放式思维与创新', group:'ability', x: 20, y: 250},
    {id:3, label:'个人职业能力', group:'ability', x: 20, y: 350},
    {id:4, label:'沟通表达与团队合作', group:'ability', x: 20, y: 450},
    {id:5, label:'态度与习惯', group:'ability', x: 20, y: 550},
    {id:6, label:'责任感', group:'ability', x: 20, y: 650},
    {id:7, label:'价值观', group:'ability', x: 20, y: 750},
    {id:8, label:'实践构思、设计、实现和运行为社会的贡献', group:'ability', x: 20, y: 850}
];

const lessonNodes = [
    {id:101, label:'计算系统与计算思维', group:'lesson', x: 350, y: 10},
    {id:102, label:'程序设计基础（Java）', group:'lesson', x: 350, y: 220},
    {id:103, label:'专业导引与职涯规划（软件工程专业）', group:'lesson', x: 550, y: 160},
    {id:104, label:'面向对象程序设计（Java）', group:'lesson', x: 850, y: 220},
    {id:105, label:'数据库原理与技术', group:'lesson', x: 550, y: 320},
    {id:106, label:'计算机网络I', group:'lesson', x: 550, y: 10},
    {id:107, label:'数据结构（Java）', group:'lesson', x: 950, y: 10},
    {id:108, label:'前端开发技术', group:'lesson', x: 350, y: 500},
    {id:109, label:'面向对象系统分析与设计-双语', group:'lesson', x: 950, y: 330},
    {id:110, label:'Web开发技术（Java）', group:'lesson', x: 550, y: 500},
    {id:111, label:'计算机组成原理I', group:'lesson', x: 350, y: 580},
    {id:112, label:'软件质量保证与测试II', group:'lesson', x: 620, y: 680},
    {id:113, label:'操作系统', group:'lesson', x: 350, y: 760},
    {id:114, label:'软件体系结构与架构技术I', group:'lesson', x: 850, y: 600},
    {id:115, label:'软件工程', group:'lesson', x: 990, y: 430},
    {id:116, label:'软件项目管理', group:'lesson', x: 550, y: 890},
    {id:117, label:'工程经济与伦理', group:'lesson', x: 350, y: 950}
];

const abilityLessonEdge = [
    { from: 1, to: 101 },
    { from: 1, to: 102 },
    { from: 1, to: 104 },
    { from: 1, to: 105},
    { from: 1, to: 106 },
    { from: 1, to: 107 },
    { from: 1, to: 108 },
    { from: 1, to: 109 },
    { from: 1, to: 111 },
    { from: 1, to: 112 },
    { from: 1, to: 113 },
    { from: 1, to: 114 },

    { from: 2, to: 102 },
    { from: 2, to: 105},
    { from: 2, to: 106 },
    { from: 2, to: 113 },

    { from: 3, to: 101 },
    { from: 3, to: 104 },
    { from: 3, to: 105},
    { from: 3, to: 106 },
    { from: 3, to: 107 },
    { from: 3, to: 108 },
    { from: 3, to: 109 },
    { from: 3, to: 110 },
    { from: 3, to: 112 },
    { from: 3, to: 113 },
    { from: 3, to: 114 },
    { from: 3, to: 115 },

    { from: 4, to: 103 },
    { from: 4, to: 115},

    { from: 5, to: 101 },
    { from: 5, to: 109},

    { from: 5, to: 101 },
    { from: 5, to: 109},

    { from: 6, to: 103},
    { from: 6, to: 111 },
    { from: 6, to: 114 },
    { from: 6, to: 116 },

    { from: 7, to: 103 },
    { from: 7, to: 117 },
    
    { from: 8, to: 102 },
    { from: 8, to: 103 },
    { from: 8, to: 104 },
    { from: 8, to: 108},
    { from: 8, to: 109 },
    { from: 8, to: 110 },
    { from: 8, to: 112 },
    { from: 8, to: 114 },
    { from: 8, to: 115 },
    { from: 8, to: 116 },
    { from: 8, to: 117 }
   
];

const abilityLessonEdgeWithInheritance = [
    { from: 1, to: 101 },
    { from: 1, to: 102 },
    { from: 1, to: 107 },
    { from: 1, to: 108 },
    { from: 1, to: 109 },
    { from: 1, to: 111 },
    { from: 1, to: 112 },
    { from: 1, to: 113 },

    { from: 2, to: 102 },
    { from: 2, to: 106 },
    { from: 2, to: 113 },

    { from: 3, to: 101 },
    { from: 3, to: 104 },
    { from: 3, to: 105},
    { from: 3, to: 108 },
    { from: 3, to: 112 },
    { from: 3, to: 113 },
    { from: 3, to: 115 },

    { from: 4, to: 103 },
    { from: 4, to: 115},

    { from: 5, to: 101 },
    { from: 5, to: 109},

    { from: 5, to: 101 },
    { from: 5, to: 109},

    { from: 6, to: 103},
    { from: 6, to: 111 },
    { from: 6, to: 114 },
    { from: 6, to: 116 },

    { from: 7, to: 103 },
    { from: 7, to: 117 },
    
    { from: 8, to: 102 },
    { from: 8, to: 108},
    { from: 8, to: 109 },
    { from: 8, to: 112 },
    { from: 8, to: 116 },
    { from: 8, to: 117 }
   
];

const lessonToLessonEdge = [
    { from: 102, to: 103, dashes: true },
    { from: 102, to: 104, dashes: true },
    { from: 102, to: 105, dashes: true },
    { from: 101, to: 106, dashes: true },
    { from: 104, to: 107, dashes: true },
    { from: 104, to: 109, dashes: true },
    { from: 108, to: 110, dashes: true },
    { from: 110, to: 114, dashes: true },
    { from: 109, to: 115, dashes: true }
]

const options = {
    groups:{
        useDefaultGroups: true,
        ability:{
            color:{
                border: 'rgb(243,200,9)',
                background: 'rgb(219,182,16)',
                highlight: {
                    border: 'rgb(219,192,70)',
                    background: 'rgb(219,192,70)'
                },
                hover: {
                    border: 'rgb(219,192,70)',
                    background: 'rgb(219,192,70)'
                }}, 
            borderWidth:1,
            font: {
                color: '#343434',
                size: 14,
                align: 'center'
            },
            shape:'ellipse',
            size: 50
        },
        lesson:{
            color:{
                border: '#2B7CE9',
                background: '#97C2FC',
                highlight: {
                    border: '#2B7CE9',
                    background: '#D2E5FF'
                },
                hover: {
                    border: '#2B7CE9',
                    background: '#D2E5FF'
                }}, 
            borderWidth:1,
            font: {
                color: '#343434',
                size: 14,
                align: 'center'
            },
            shape:'box',
            size: 50
        },
        KT:{
            color:{
                border: '#2B7CE9',
                background: '#97C2FC',
                highlight: {
                    border: '#2B7CE9',
                    background: '#D2E5FF'
                },
                hover: {
                    border: '#2B7CE9',
                    background: '#D2E5FF'
                }}, 
            borderWidth:3,
            font: {
                color: '#343434',
                size: 14,
                align: 'center'
            },
            shape:'box',
            size: 25
        }
    },
    edges: {
        arrows: 'to',
        color: {
            color: '#848484',
            highlight:'rgb(219,192,70)'
        }
    },
    physics: {  
        enabled: false
    }  

};  

export {abilityNodes, lessonNodes, abilityLessonEdge, abilityLessonEdgeWithInheritance, lessonToLessonEdge, options}